<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<link rel="stylesheet" href="./css/newEnvsion.css" type="text/css" />
		<link rel="stylesheet" type="text/css" href="./css/forum.css">
		<link rel="stylesheet" type="text/css" href="./css/grid.css">
		<link rel="stylesheet" type="text/css"
			href="./extjs/resources/css/ext-all.css">		
		<script type="text/javascript" src="./extjs/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="./extjs/ext-all-debug.js"></script>
		<script type="text/javascript" src="./common/topbar.js"></script>
		<script type="text/javascript" src="./common/filelist.js"></script>
		<script type="text/javascript" src="./common/main.js"></script>
		<script type="text/javascript" src="./common/uploadfile.js"></script>
		<script type="text/javascript" src="./common/highsearch.js"></script>
		
		<script type="text/javascript">
		//document.execCommand("BackgroundImageCache", false, true) 
		var curpath;//全局变量
    	Ext.onReady(function(){
    		new Ext.clNameSpace.topBar({
    			renderTo:'topbar-div'
    		});
    		new Ext.clNameSpace.mainPanel({
    			renderTo:'main-div'
    		});		
         
    	});
    	function downloadFile(){
        	getchecktitle();
    	}	
    	function downloadhighFile(){
    		var grid = Ext.getCmp("highfilelist");
    								if(grid.getSelectionModel().hasSelection()){
    									var records = grid.getSelectionModel().getSelections();
    									var filelist = new Array();
    									for(var i = 0; i < records.length; i++){
    										filelist[i] = records[i].data.title;
    										var curr = records[i].data.fpath;
    										Ext.Ajax.request({
    	    									url:"login/docurrentpath.action",
    	    									params:{
    	    										currentPath:curr
    	    									}
    	    								});
    										if(filelist[i] != "...返回上级目录"){
    											
    											window.open('login/download.action?filename='+encodeURI(encodeURI(filelist[i])),'_self');
    											var newtimes = 1+Number(records[i].data.downloadtimes);
    											records[i].set("downloadtimes",newtimes);
    											records[i].commit();
    										}
    				
    									}
    								}else{
    									Ext.Msg.alert("请选择");
    								}
    								
    	}
    	
    	
    </script>
    <style type="text/css">
        .toolbar{ background-color:Red; background-image:url(); }
	</style>
	</head>

	<body>
		<div id="wrap" class="x-hidden-display">

			<div id="topbar-div" class="x-hidden-display"></div>
			<div id="toolbar"></div>
			<div id="main-div" class="top-grid">
				
			</div>

		</div>
	</body>
</html>
